import { postService }  from './fetch'

let $service = {}

/*--------------------------------------------------  api start  ---------------------------------------------------------- */

/**
 * md5接口
 * @param {*} urlApi 
 * @param {*} data 
 */
$service.funcMd5 = (urlApi,data) => {
  return postService({ 
    url:urlApi,
    method:'post',
    data: data
  })
}

/**
 * aes接口
 * @param {*} urlApi 
 * @param {*} data 
 */
$service.funcAes =(urlApi,data) => {
  return postService({
    url:urlApi,
    method:'post',
    data: data
  })
}

/**
 * 用户注册
 * @param {*} urlApi 
 * @param {*} data 
 */
$service.insert = (urlApi,data) => {
  return postService({
    url:urlApi,
    method:'post',
    data: data
  })
}


/**
 * 
 * 用户个人资料
 */
$service.getUserinfo = (urlApi) => {
  return postService({
    url:urlApi,
    method:'get'
  })
}

















/*-----------------------------------------------  api end  -------------------------------------------------------*/

export { $service }
